//
//  StudyRecordCell.m
//  TrainTree
//
//  Created by wanghui on 2017/9/9.
//  Copyright © 2017年 YouYeShu. All rights reserved.
//

#import "StudyRecordCell.h"
@interface StudyRecordCell()


@end

@implementation StudyRecordCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)configWithDic:(NSDictionary *)dic
{
    if (dic) {
        self.powerNumber.text  = [NSString stringWithFormat:@"%@",dic[@"powerCount"]];
        self.studyTime.text    = [NSString stringWithFormat:@"%@",dic[@"studyTimeCount"]];
        self.classNumber.text  = [NSString stringWithFormat:@"%@",dic[@"lessonCount"]];
    }else{
        self.powerNumber.text  = @"0";
        self.studyTime.text    = @"0";
        self.classNumber.text  = @"0";
    }

//    self.commitNumber.text = [NSString stringWithFormat:@"%@",dic[@"feedbackCount"]];

}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
